package com.company.day2;
//数列求和 1/3 + 3/5 + 5/7 + ... + 97/99
public class Sum {
    public static void main(String[] args) {
        double i = 1;
        double j = 3;
        double sum = i/j;
        if(i <= 95){
            i = i + 2;
            j = j + 2;
            sum = sum +i/j;
        }
        System.out.printf(String.valueOf(sum));
    }
}
